def setup(cfg):
    
    #password for boot loader
    cfg.set("BOOTLOADERPASS","atlas")
    
    #root password
    cfg.set("ROOTPW","atlas")
    
    
    #timezone (hardware clock will be set to UTC to work around some VM timing issues)
    cfg.set("TIMEZONE","America/Los_Angeles")

    #URL of the linux installation source
    cfg.set("URL","http://electra.lbl.gov/sl55/x86_64")
    #cfg.set("URL","http://ftp.scientificlinux.org/linux/scientific/55/x86_64/")
    
    #Public Network setup for all nodes
    cfg.set("NAMESERVER","192.168.0.1")
    cfg.set("GATEWAY","192.168.0.1")
    cfg.set("NETMASK","255.255.255.0")
    cfg.set("DOMAINNAME","mytier3.com")

    #Private network
    cfg.set("PRIVATENETMASK","255.255.240.0")

            
    cfg.addNode(role="NFS",  hostname="nfs",       publicip="192.168.0.201")
    cfg.addNode(role="HEAD", hostname="headnode",  publicip="192.168.0.202")
    cfg.addNode(role="INTERACTIVE", hostname="int01",  publicip="192.168.0.211")
    cfg.addNode(role="INTERACTIVE", hostname="int02",  publicip="192.168.0.212")    
    cfg.addNode(role="INTERACTIVE", hostname="int03",  publicip="192.168.0.213")    

    cfg.addNode(role="LDAP",  hostname="ldap",      publicip=None)
    cfg.addNode(role="PROXY", hostname="proxy",     publicip=None)

    cfg.addManyNodes(role="WORKER", nnodes=10,hostnamepattern="worker%03d", publicip=None)

    #, publicipstarts=None, privateipstarts="192.168.194.1", kstemplate="ks-at3-worker.cfg.template") eth0

#    cfg.addNode(role="CONDORHEAD", hostname="condorhead",publicip=None)
#    cfg.addNode(role="XROOTD", hostname="xrootd",    publicip=None)

#,            privateip="192.168.192.13", kstemplate="ks-at3-vmpuppetclient.cfg.template")

 #   ,            privateip="192.168.192.14", kstemplate="ks-at3-vmpuppetclient.cfg.template")
 #   , privateip="192.168.192.10", kstemplate="ks-at3-nfs.cfg.template")
    #, privateip="192.168.192.1",  kstemplate="ks-at3-headnode.cfg.template")    
  #  ,            privateip="192.168.192.11", kstemplate="ks-at3-vmpuppetclient.cfg.template")
  #  ,            privateip="192.168.192.12", kstemplate="ks-at3-vmpuppetclient.cfg.template")
#    , privateip="192.168.192.1",  kstemplate="ks-at3-headnode.cfg.template")

    #Batch add interactive nodes, give the starting public and private IP of it.
#    cfg.addManyNodes(role="INTERACTIVE", nnodes=10, hostnamepattern="int%03d", publicipstarts="192.168.0.211", privateipstarts="192.168.193.1", kstemplate="ks-at3-interactive.cfg.template")
    
    #Batch add worker nodes, publicipstarts=None meaning no public IP
    

    cfg.set("DISK_HEAD","""
    sda: pv.sda + 512 for boot
    sdb-sdf: pv.sdx
    sysvg: pv.sd[abcdefg]

logvol /                --vgname=sysvg  --size=20000     --name=sys             #   20 GB for system
logvol /tmp             --vgname=sysvg  --size=10000     --name=tmp             #   10 GB for tmp
logvol /var             --vgname=sysvg  --size=5000      --name=var             #   5 GB for var
logvol /opt             --vgname=sysvg  --size=5000      --name=opt             #   5 GB for opt



Create 2 sets of ks.







